package admin

import (
	"github.com/gin-gonic/gin"
	"go-api-template/service"
)

func SetRouter(r *gin.RouterGroup) {
	rg := r.Group("/admin")

	rg.Use(

	// middleware.UserOneLoginMid(), // 单态登录
	)

	if service.Conf.Security.Enable {
		// rg.Use(middleware.UserLoginLimit()) // 登录重试次数
	}
	setUserApi(rg)
	setRoleApi(rg)
	setMenuApi(rg)
	setResourceApi(rg)
	setTagApi(rg)
}
